

#ifndef __include_MovableText_H__
#define __include_MovableText_H__

namespace Ogre {

	class MovableText /*: public MovableObject, public Renderable*/
	{
		/******************************** MovableText data ****************************/
	public:

	protected:

		std::wstring		mCaption;
		float				m_height;
		float				m_width;

		/******************************** public methods ******************************/
	public:

		MovableText(){}
		MovableText(const String &name, const std::wstring &caption);
		virtual ~MovableText();
		void		setCaption(const std::wstring &caption);
		void		setAvatar(Entity *ent,const Ogre::String &boneName ){m_avatar = ent; m_boneName = boneName;};
		const   std::wstring    &getCaption() const {return mCaption;}

		void		updata();
		static void Render();
		/******************************** protected methods and overload **************/
	protected:
		Ogre::TexturePtr			m_FontTexture;
		Ogre::Entity *				m_avatar;
		Ogre::String				m_boneName;
		Ogre::String				MovableTextName;

	};

} //end namespace Ogre

#endif